<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/11/8
  Time: 10:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
</head>
<body>
<form action="success2.jsp" method="post">
    <h2>请登录</h2>
    <table>
        <tr>
            <td>用户名：</td>
            <td><input type="text" name="username"/><span
                    style="color: red">${requestScope.user.errors.username}
            </span>
            </td>
        </tr>
        <tr>
            <td>密码：</td>
            <td><input type="password" name="password1"/><span
                    style="color: red">${requestScope.user.errors.password1}</span></td>
        </tr>
        <tr>
            <td>确认密码：</td>
            <td><input type="password" name="password2"/><span
                    style="color: #ff0000">${requestScope.user.errors.password2}</span></td>
        </tr>
        <tr>
            <td>邮箱：</td>
            <td><input type="email" name="email"/><span style="color: red">${requestScope.user.errors.email}</span></td>
        </tr>
        <tr>
            <td><input type="reset"/></td>
            <td><input type="submit" value="登录"/></td>
        </tr>
    </table>
    <br>
    <a href="register.jsp">注册</a>
</form>
</body>
</html>
